﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="clear_list.aspx.cs" Inherits="admin_chuku_clear_list" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>费用结算</title>
    <link type="text/css" rel="stylesheet" href="../scripts/ui/skins/Aqua/css/ligerui-all.css" />
    <link type="text/css" rel="stylesheet" href="../images/style.css" />
    <link type="text/css" rel="stylesheet" href="../select/skins/style.css" />
    <script type="text/javascript" src="../scripts/jquery/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../scripts/ui/js/ligerBuild.min.js"></script>
    <script type="text/javascript" src="../js/function.js"></script>
    <script type="text/javascript" src="../select/js/select_split.js"></script>
    <script type="text/javascript">
        //局部刷新重新加载表格css
        $(document).ready(function () {
            SetRowClass();
            ReloadJs();
        })      
    </script>
</head>
<body class="mainbody">
    <form id="form1" runat="server"> 
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>   
    <div class="navigation">首页 &gt; 入库出库 &gt; 费用结算 </div> 
    <div class="tools_box">
        <div class="tools_bar">
             <div class="search_box_left">
                报关单号： <asp:TextBox ID="txtKeywords" runat="server" CssClass="txtInput"></asp:TextBox>
                <asp:Button ID="btnSearch" runat="server" Text="搜 索" CssClass="btnSearch" onclick="btnSearch_Click"  />
            </div>
        </div> 
    </div>
    <!--列表展示.开始-->
    <asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate>
    <asp:Repeater ID="rptList" runat="server">
        <HeaderTemplate>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
                <tr>
                    <th  align="left">报关单号</th>
                    <th width="15%" align="left">结算状态</th>
                    <th width="15%" align="left">入库时间</th>
                    <th width="15%" align="left">入库方式</th>
                    <th width="15%" align="left">入库仓库</th>
                    <th width="10%">操作</th>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td><%#Eval("decla_id")%> <asp:HiddenField ID="hidId" Value='<%#Eval("id")%>' runat="server" /></td>
                <td><%#Convert.ToInt32(Eval("cost_status")) == 0 ? "<label style=\"color: #FF6600\">未结算</label>" : "已结算"%></td>
                <td><%#string.Format("{0:yyyy-MM-dd HH:mm}", Eval("ruku_time"))%></td>              
                <td><%#Eval("ruku_way")%></td>
                <td><%#Eval("ruku_storage")%></td>
                <td align="center"><a href="clear_edit.aspx?action=<%#ActionEnum.Edit %>&id=<%#Eval("id")%>">结算</a></td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"6\">暂无记录</td></tr>" : ""%>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    
    <!--列表展示.结束-->
    <div class="line15"></div>   
    <div class="page_box">
        <div id="PageContent" runat="server" class="flickr right"></div>
        <div class="left">
             显示 <asp:Button ID="btn10" runat="server" Text="10" CssClass="btnnum" onclick="btn10_Click"   />
             <asp:Button ID="btn20" runat="server" Text="20" CssClass="btnnum" onclick="btn20_Click"   />
             <asp:Button ID="btn50" runat="server" Text="50" CssClass="btnnum" onclick="btn50_Click"   />条/页&nbsp;
            共<asp:Label ID="lblCount" runat="server" Text=""></asp:Label>条记录
        </div>
        <webdiyer:AspNetPager ID="AspNetPager1" CssClass="paginator" CurrentPageButtonClass="cpb"
            runat="server" HorizontalAlign="Right" PageSize="10" OnPageChanged="AspNetPager1_PageChanged"
            NumericButtonCount="8" CurrentPageButtonPosition="Center" ShowDisabledButtons="false" 
            AlwaysShowFirstLastPageNumber="true"  ShowFirstLast="False"
            NextPageText="&nbsp;&nbsp;&nbsp;下一页&nbsp;&nbsp;&nbsp;" PrevPageText="&nbsp;&nbsp;&nbsp;上一页&nbsp;&nbsp;&nbsp;">
        </webdiyer:AspNetPager>      
    </div>
     </ContentTemplate></asp:UpdatePanel>
    <div class="line10"></div>
    </form>
</body>
</html>
